package com.yr.ryjk.district.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yr.ryjk.district.dao.DistrictMapper;
import com.yr.ryjk.district.entity.District;

@Service
public class DistrictService implements IDistrictService {
	@Autowired
	private DistrictMapper districtMapper;
	
	@Override
	public List<District> getAllPros() {
		return districtMapper.selectAllPro();
	}

	@Override
	public List<District> getCitysByPro(String proId) {
		return districtMapper.selectByParentId(proId);
	}

	@Override
	public List<District> getCountysByCity(String cityId) {
		return districtMapper.selectByParentId(cityId);
	}
}